#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <limits.h>
using namespace std;

class Solution{
  public:
    int MaxValue(vector<int>& nums)
    {
        //Write code here 
        
    }
};